fixing UnicodeEncodeError when searching, close #11941
replacing search block by django form
fixing searching query
Merge pull request #2034 from aleksandra-tarkowska/rebased/dev_5_0/11941_unicode_searching

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