improve unicode support in Python2