Fix Sublime Text 3 compatibility

Sublime Text 3 use Python 3, and here are the changes related to the problem:
https://docs.python.org/release/3.0.1/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit