I have an interesting issue.
when I have a Url that ends with a "." (Period) it errors. But if the period is anywhere else in the url it is fine.
for example:
(This one errors)
http://mySite/controller/action/my.id.value-somevalue.
(This one is fine)
http://MySite/controller/action/my.id.value-somevalue
I tried using both
@Uri.EscapeDataString @Uri.EscapeUriString -- This does not escape the "."