Features
- Switches between encodeURIComponent, encodeURI and x-www-form-urlencoded for the right escaping.
- Component mode safely escapes a single query parameter without touching reserved characters.
- Form mode turns spaces into '+' so the output matches HTML form submissions exactly.