reading the file as binary

Python3 compatibility by reading file as binary and then decoding it in UTF8