Use URI Component Encoder / Decoder without a complicated workflow.
Encode and decode URI components for query values, path parts, and browser links. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.