Encode text to URL-safe format or decode URL-encoded strings. Handles special characters, Unicode, and query parameters.