Correctly convert the given query and parameters into a full query+query
    string, ensuring the order of the params.

def urlencode(query, params):
    """
    Correctly convert the given query and parameters into a full query+query
    string, ensuring the order of the params.
    """
    return query + '?' + "&".join(key+'='+quote_plus(str(value)) 
                                  for key, value in params)