In the Client, fix a problem with the results of parse_qs

parse_qs returns values as lists. For single values, this
isn't always accepted by the host API.