Added an implementation of Url.encodeQuery.