'Serialize as post data for a POST request.'

def to_postdata(self):

    d = {}
    for (k, v) in self.iteritems():
        d[k.encode('utf-8')] = to_utf8_optional_iterator(v)
    return urllib.urlencode(d, True).replace('+', '%20')
