Write in binary file mode
Merge pull request #3 from bquorning/write_binary_file

Write in binary file mode