When creating a new instance of an Uri the spaces in the string are escaped with %20.
new Uri("https://www.test.com?city=New York") will be con
new Uri("https://www.test.com?city=New York")