Fixes #10

Workaround issue with handling character encoding in Python 2 vs 3.