set proper charset, fix encoding issues when calling NER services