I tested it locally now toString() method is handling query params for Url::createFromRequest.
Closes #3555258