I\'ve got a function to strip null bytes from strings in input data:
export function stripNullBytes(str: string | null): string | null { return str?.replace