Fixed bug in autocompleter for search terms containing special chars

When searching the autocompleter for terms with special characters, the query
was not parsed correctly and no results where shown for many words containing
special characters like umlaute.