fixing problems with search string encoding, works much better now