Build a URL from safely encoded component data
Validate raw data, encode each component once, assemble it with URL APIs, then validate and round-trip the finished URL.
- Identify component boundaries
- Encode raw component data
- Assemble with URL/URLSearchParams
- Validate the complete URL
- Round-trip expected values