urlEncode

fun urlEncode(value: String): String

URL-encode a string. This is useful for sanitizing untrusted data for use in URLs.