'Serialize as post data for a POST request.'

def to_postdata(self):

    items = []
    for (k, v) in sorted(self.items()):
        items.append((k.encode('utf-8'), to_utf8_optional_iterator(v)))
    return urlencode(items, True).replace('+', '%20')
