Normally I would just use:
But since this is a console application, HttpContext.Current is always going to be null.
Is there another method that does the same thing that I could use?
No need to reference System.Web.
Edit: Please see another SO answer for more...
I'm not a .NET guy, but, can't you use:
HttpUtility.UrlEncode Method (String)
Which is described here:
HttpUtility.UrlEncode Method (String) on MSDN