SPHttpUtility Class
Provides access to methods used to encode and decode strings during the processing of Web requests.
Namespace:
Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online