Fix \r\r\n and ignoring 'newlines' on win32

On win32 when the filename is given at instantiation time it was saving the files with \r\r\n at eol. If 'newlines' was set to '\n' it was saving files with \r\n. Changing file open to binary fixes this so the write() doesn't redo the line endings.