def iriencode(value): """Escapes an IRI value for use in a URL.""" return force_text(iri_to_uri(value))