Fixed unicode errors with binary files.