Files declared as UTF-8 will append NUL bytes to output for non ASCII character