in reply to Null \x00 being replaced by space \x20

The :crlf IOLayer might have something to do with this, since you are probably on Windows. Are there any changes if you open your files with :raw appended to the second argument?

Replies are listed 'Best First'.
Re^2: Null \x00 being replaced by space \x20
by ikegami (Patriarch) on Nov 10, 2018 at 09:46 UTC

    :crlf transforms 0D 0A into 0A on read, and 0A into 0D 0A on write. That's it.