fixed UnicodeEncodeError on adding index