add url-build-query-string and improve url-parse-query-string as per bug#8706