Local files need to be opened as binary.
Merge pull request #11 from ChipJust/develop

Local files should be opened as binary.