correctly handling query strings in the logs search results urls. There seems to be a flaw with encodeURIComponent. It replaces & with %26amp%3B instead of amp%3B. same goes for the javascript string replace method.