Fixing urlencoding by httpfoundation screwing the search urls