D-16104 Unescaped % in URI returns 500

Code changes to pass URIs with invalid query parameters through Repose (after encoding the invalid characters). Tests show behavior.