Changed the byte-to-string conversion to make it work with both python3 and python2.

This commit fixes #29.
It does not seem to break anything either... although the testing I did was somewhat limited.
I tested under both python 2.7.8 and 3.4.1, and everything seems to be fine under both versions.