Only remove query string from relative URI.