ValueError: A string literal cannot contain NUL (0x00) characters. while decode code example
Example: ValueError: A string literal cannot contain NUL (0x00) characters.
s.decode("utf-8", errors="replace").replace("\x00", "\uFFFD")
s.decode("utf-8", errors="replace").replace("\x00", "\uFFFD")