def encode(input, errors=None): return uri.quote_url(input), len(input)
def quote(self, s): return urimod.quote_url(s)