Encode text so it can safely appear inside a URL, or decode encoded URL text back into readable text.