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