Encode text with percent-encoding so it is safe in URLs and query parameters, or decode it back to readable text.