encoding fix for keyword extraction