encoding fix for keyword extractor