Update build_query_string to avoid double `??`s

Setting `uri.query` adds a `?` character to the URL string automatically.  We don't need to add it again in `build_query_string`, since doing so generates two `?` characters in the URL.