Fix issues with bogus % encoded sequences in URLs