I need to Base64 encode a string, but the encoded string cannot contain "+". Wikipedia mentions a modified Base64 for URL, but I can't find a .NET class which uses this.
For my application, I can't even URL encode "+" into "%2B". This is because I pass the encoded string to a service which I have no control over, and that service mangles any strings which contain "%2B". For this reason, I want my encoded string to only contain A-Z, a-z, 0-9, -, and _.
I'm aware of this having been asked before, but I don't see a working answer. Any help would be appreciated.