switched to binary file mode for windows compat
Merge pull request #2 from rvikmanis/master

switched to binary file mode for windows compat