reading the file as binary

Python3 compatibility by reading file as binary and then decoding it in UTF8

```
>>> with open('test.txt', 'r') as fid:
...     fid.read().decode('utf-8')
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
AttributeError: 'str' object has no attribute 'decode'
```

```
>>> with open('test.txt', 'rb') as fid:
...     fid.read().decode('utf-8')
...
''
```