convert to unicode first

fix problem when query contains nordic character i.e. ö