implemented Uri::build_query_string(). Closes #1425