Currently, I am facing an issue where I must maintain the presence of %2F in a URI string. Unfortunately, when using encodeURI, the % sign gets encoded as %25 (which is normal), causing the entire string to become %252F instead of %2F. How can I prevent this from happening and ensure that the % doesn't get encoded? The situation is complex as it occurs deep within a framework, ruling out JavaScript manipulation as a solution - the only option is to handle it through string escaping methods. Despite trying various approaches involving backslashes (\), none have proven successful so far.