Search: Fixed crash when certian punctuation characters are used in query string