Clean up newlines

Forgot to open in binary mode, eliminates extra \n for Windows