Issues with magnets links not being added to download client

Having issues with the NZB drone and magnet links if i manually add the magnet it works
but it looks like it putting loads of spaces in it

Connect to the torrent downloader fine i have also uninstalled sonarr and reinstalled fresh and reset up and reconnected everything running latest everything
OS is windows server 2022 and has been for a very long time working great only recently stopped working
using prowlarr to get indexers

Any tips would be apricated attached log of example failure.

2024-04-14 22:42:02.9|Error|ReleaseController|Downloading torrent failed

[v4.0.4.1491] NzbDrone.Core.Exceptions.ReleaseDownloadException: Downloading torrent failed
—> NzbDrone.Common.Http.HttpException: HTTP request failed: [400:BadRequest] [GET] at [http://10.151.0.112:8080/gui/?token=(removed)&action=add-url&s=magnet%3A%3Fxt%3Durn%3Abtih%3A26D4090839056FEC60703057D3F00D307A119CAB%26dn%3DOne.Piece.2023.SEASON.01.S01.COMPLETE.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA%26tr%3Dudp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Fretracker.lanta-net.ru%3A2710%2Fannounce%26tr%3Dudp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce%26tr%3Dudp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Fwww.torrent.eu.org%3A451%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce%26tr%3Dudp%3A%2F%2Fretracker.netbynet.ru%3A2710%2Fannounce%26tr%3Dudp%3A%2F%2Fopentor.org%3A2710%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.moeking.me%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.dler.org%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.bitsearch.to%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Fexplodie.org%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Fbt1.archive.org%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce%26tr%3Dhttp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce%26tr%3Dudp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce]
at NzbDrone.Common.Http.HttpClient.ExecuteAsync(HttpRequest request) in ./Sonarr.Common/Http/HttpClient.cs:line 119
at NzbDrone.Common.Http.HttpClient.Execute(HttpRequest request) in ./Sonarr.Common/Http/HttpClient.cs:line 128
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.ProcessRequest(HttpRequestBuilder requestBuilder, UTorrentSettings settings) in ./Sonarr.Core/Download/Clients/uTorrent/UTorrentProxy.cs:line 239
at NzbDrone.Core.Download.Clients.UTorrent.UTorrentProxy.AddTorrentFromUrl(String torrentUrl, UTorrentSettings settings) in ./Sonarr.Core/Download/Clients/uTorrent/UTorrentProxy.cs:line 94
at NzbDrone.Core.Download.Clients.UTorrent.UTorrent.AddFromMagnetLink(RemoteEpisode remoteEpisode, String hash, String magnetLink) in ./Sonarr.Core/Download/Clients/uTorrent/UTorrent.cs:line 61
at NzbDrone.Core.Download.TorrentClientBase1.DownloadFromMagnetUrl(RemoteEpisode remoteEpisode, IIndexer indexer, String magnetUrl) in ./Sonarr.Core/Download/TorrentClientBase.cs:line 235 at NzbDrone.Core.Download.TorrentClientBase1.DownloadFromWebUrl(RemoteEpisode remoteEpisode, IIndexer indexer, String torrentUrl) in ./Sonarr.Core/Download/TorrentClientBase.cs:line 215