Fix for bug that could occur when non url escaped characters were used in the parameters of a url.