Instead of hacking with UriBuilder.Path, I think it would be better to add `[System.Uri]::EscapeDataString` to the allowlist at the MSBuild side. _Originally posted by @KalleOlaviNiemitalo in https://github.com/dotnet/sdk/pull/51039#discussion_r2384177133_ We should allow this method on the set of known functions. It's available across framework and modern .NET.