Escape and unescape unsafe characters in URIs.