fixing bug that caused crash when search string contains special characters or umlauts