1. Why encode with URLSearchParams?
Query strings often contain non-ASCII characters, spaces, and special characters like `&`, `=`, and `#`. Concatenating these by hand easily leads to bugs β missing encoding, double-encoding, or delimiter collisions. URLSearchParams is a browser standard API that correctly percent-encodes each value per the application/x-www-form-urlencoded rules and safely joins them with `&`. This tool uses that exact logic to build its output.