Escape autocompletion terms before passing them on to the request.