Percent-encode query values and URI components
Encode UTF-8 strings into clean Base64
Decode Base64 payloads back to UTF-8 text
Decode percent-encoded URLs and query parameters