Support for saving files with NUL bytes+all supported encodings.