fix for topic model unicode function