R – Encode unc path for firefox in ASP.NET

asp.netcharacter-encodingencodingfirefox

I need to encode a path so firefox can open it directly. I've tried HttpUtility.UrlEncode, HttpUtility.HttpEncode and HttpUtility.HtmlEncode but none of these seem to work.

Any ideas?

Best Solution

HttpServerUtility.UrlPathEncode was the answer...