fix double encoding of search terms