Don't corrupt binary files on hashing