add str_to_unicode method for search/utils.py