always read files in binary mode
Merge pull request #15 from mhils/fix_binary_rw

always read files in binary mode