tested in Python 2.7; fixed Unicode support
Merge pull request #1 from atten/master

tested in Python 2.7; fixed Unicode support