URL Encode

Convert plain text (or a full URL) into a percent-encoded string. We encode the entire input (like encodeURIComponent) so everything is safe to embed.