Handle utf-8 string in Python 2