How can we encode a string using the URL (RFC 1738) standard in C#?
The following online tool is converting the strings using this standard http://www.freeformatter.
Uri.EscapeDataString does what you want. See MSDN.