When I obtain one particular of those problems, I usually double encode the outcomes (which turns %2f into %252f) for that API. However, this could break other APIs which aren't anticipating double encoding, so this is simply not a universal Resolution.The addition of toupper guarantees the case insensitivity required by RFC 3986 no matter which ve