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

fixing UnicodeEncodeError when searching, close #11941