fixing UnicodeEncodeError when searching, close #11941 (rebased onto dev_4_4)



This is the same as gh-2033 but rebased onto dev_4_4.

----

in order to test type 'tętnica' the word from the qa feedback.