Just found a good site,
http://www.the-art-of-web.com/javascript/escape/
I had this url in CRM 2011 for creating related entity record
quickly wanted to escape the special character, used the tool given at that site to get the url without any special character