fix unicode problem in Python 3