title: Converting a string to a "URL Safe" string for Twilio
body: <p>This isn't Twilio specific, but the issue does cause the Twilio API call to fail..</p>
  
  <p>I'm wanting to generate an XML file via Twilio's lab:</p>
  
  <pre><code>http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHi+there.%3C%2FSay%3E%3C%2FResponse%3E
  </code></pre>
  
  <p>The above URL works great as a parameter in the API and obviously works if you use your browser to view the output.</p>
  
  <p>I can also view the following in the browser, and it works fine, but this version of the URL fails as a parameter to the Twilio API</p>
  
  <pre><code>http://twimlets.com/echo?Twiml=Response&gt;&lt;Say&gt;Hi+there.&lt;/Say&gt;&lt;/Response&gt;
  </code></pre>
  
  <p>For readability and debugging I would <em>much</em> prefer to have the second URL.  Is there a library or other way in C# to convert the second, pretty URL to the first, replacing %3C with the '&lt;' character and so on?  I could then just do the replacement right before I send it off to the API since my app pushes around and stores the pretty version everywhere else. I can of course write one myself to do the conversion, but it seems like this would be a common problem.  Thanks!</p>