Bug fix: did not use outputCharset in the conversion of search term