Fix unicode issue with Python 3