title: HttpServerUtility.UrlTokenDecode only seems to return null
body: <p>I seem to be having an issue with the <code>HttpServerUtility.UrlTokenDecode(string)</code>, as it is constantly returning null, causing the program to crash.</p>
  
  <p>From what I have gathered, this method will convert a string to it's base64 Byte-Array. Unfortunately, the original developer of the code is no longer with us, and it seems not many people in my office are familiar with the code.</p>
  
  <pre><code>public string DecodeUrlData(string urlData)
  {
      string lsReturnVal = string.Empty;
      byte[] decodedrtfBytes = HttpServerUtility.UrlTokenDecode(urlData);
  
      lsReturnVal = System.Text.ASCIIEncoding.ASCII.GetString(decodedrtfBytes);
      return lsReturnVal;
  }
  </code></pre>
  
  <p>That is the code that has been written, and <code>urlData</code> has the following value:</p>
  
  <pre><code>urlData = "pdfSignature template testing."
  </code></pre>
  
  <p>(It should also be known that <code>urlData</code> may have either a "string" value, or a rtfformatted string)</p>
  
  <p>But what ends up happening is when the <code>HttpServerUtility.UrlTokenDecode(urlData)</code> line is executed, the byte array ends up being null (causing an exception in the following line).</p>
  
  <p>Is there another way to convert the string to base64 that would work, or why does it keep producing a null value?</p>