Replace three duplicated UTF-8 escaping loops with one private encoder and explicit component character sets. Preserve existing URL behavior with a narrow characterization test.
Prepared with AI assistance by Codex under pbakaus’s standing authorization for the daily architecture-simplification automation.