C# Url encoding/Decoding using the HttpUtility

When there is need to encode/decode a url then the HttpUtility has a function that does this for us.

HttpUtility.UrlDecode(url)
HttpUtility.UrlEncode(url)

(Update: Works just the same way for vb.net)