title: Encode string URL without using HttpServerUtility
body: <p>I have a Sandbox solution webpart<sup>1</sup> that receives a absolute URL in the webpart settings's section.</p>
  
  <p>Due to native limitations of sandboxes solutions, I'm looking for a <code>C# - code</code> for <strong>encode an absolute URL without using HttpServerUtility and related/pre-built classes.</strong></p>
  
  <p>I already search and try the following <a href="https://stackoverflow.com/a/11236038/4092887">code</a> and also this <a href="https://stackoverflow.com/questions/10784454/url-encode-in-c-sharp#comment14025795_10784454">comment</a>, but I can't understand or get a more legible code or approach for create a more sutile for my specific situation.</p>
  
  <hr>
  
  <p><sup>1</sup> <em>I'm working on a sandboxed solution that I was developed a few months ago and change sandboxed solution to Apps/Add-ins is not valid in this case.</em></p>