def url_replace_append(request, field, value):
    """Append a value to the GET dictionary and return it urlencoded."""
    dict_ = request.GET.copy()
    dict_.appendlist(field, value)
    return dict_.urlencode()