Deal with route decoding/encoding of search terms