public static void Main()
Console.WriteLine(HttpServerUtility.UrlTokenEncode(GetBytes("Adam+Slater/====")));
static byte[] GetBytes(string str)
byte[] bytes = new byte[str.Length * sizeof(char)];
System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length);