Reading the file bytes at a time and decoding works.