How to USe HttpUtility.UrlEncode

HI to all,

Guide me to how can we use the HttpUtilty.UrlEncode in our WCF services. I tried with System.web.HttpUtility.UrlEncode() and System.Net.HttpUtility.UrlEncode(). But it can't executes properly. KInldy guide me to slove this problem