Write binary files in mode wb
Merge pull request #2 from bentrm/win-newline

Write binary files in mode wb