Fix non-ascii strings on Python 3