Support Python 3 (#4), fix Unicode issues (#5)