Repository: flutter
Issue: Double encoded deeplink query parameters are incorrectly decoded in GoRouter.
Labels: package,has reproducible steps,P2,p: go_router,team-go_router,triaged-go_router,found in release: 3.16,found in release: 3.18

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

This issue is similar to https://github.com/flutter/flutter/issues/133567 but highlights another issue.

### Steps to reproduce

1. Clone the repo at https://github.com/jonaslundquist/deeplink_gorouter_url_encode
2. Run the app in iOS (the repro app is only configured for iOS but it appears in Android as well)
3. Run `xcrun simctl openurl booted "com.soundtrap.testgorouterdeeplink:///test?url=https%3A%2F%2Fwww.google.com%3Ffoo%3Dbar%26url2%3Dhttps%253A%252F%252Fwww.google.com"` in a terminal

### Expected results

`print(state.uri.queryParametersAll);` should print one query parameter `url`. The value should be either decoded once or not decoded at all.

### Actual results

`print(state.uri.queryParametersAll);` prints two query parameters, `url` and `url2`. It is now impossible to reconstruct the URL parameter. It seems the uri has been decoded twice.

### Code sample

See reproduction repo here: https://github.com/jonaslundquist/deeplink_gorouter_url_encode

### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.1.1 23B81 darwin-arm64, locale en-SE)
    • Flutter version 3.16.3 on channel stable at /Users/jonaslundquist/.asdf/installs/flutter/3.16.3-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (8 days ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/jonaslundquist/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/jonaslundquist/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 77.0.1
    • Dart plugin version 233.11799.172

[✓] Connected device (4 available)
    • Jonas’s iPhone (mobile)    • (serial number masked)               • ios            • iOS 17.1.1 21B91
    • iPhone 15 Pro Max (mobile) • 7F204FCB-452E-4E38-9ABD-DB5446CA62D6 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 14.1.1 23B81 darwin-arm64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 120.0.6099.109

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>