decodeURIComponent should solve your problem
var url = http://blah/%20asdf.com var uri_dec = decodeURIComponent(url);//outputs http://blah/ asdf.com
1.4m articles
1.4m replys
5 comments
57.0k users