Fix unicode problems with Python 3