Open the output files with 'wb', not 'w'.
1 file changed