Fix for searching with unicode characters like "Świętochłowice"

I had an error 'UnicodeEncodeError: 'ascii' codec can't encode character u'\u015b' in position 0: ordinal not in range(128)'. This fixed the problem.