Fixed handling of binaries
Merge pull request #12 from dantleech/reading_ok

Fixed handling of binaries