title: How to serialize Dictionary into base64
body: <p>I need to serialize the <code>headers</code> object to store it in string format, probably base64.
  The <code>Dictionary&lt;String, Object&gt;</code> will only have String or Int values, so there should be no problem. </p>
  
  <pre><code> Dictionary&lt;String, Object&gt; headers = RequestHeaders.ProcessHeaders(HttpContext.Current); 
  </code></pre>
  
  <p>Also, of course the point is to be able to deserialize the base64 string back to Dictionary.</p>