Tighten up dict_to_querystring

Empty dicts should result in '', not '?'.