Fix the logic of reading binary file

This is a fix for issue: https://github.com/kytrinyx/etsy/issues/91

Current it can not work on windows

I tested this on windows 7 and other member also helped to tested this Mac, it should work fine