Recently a project I was working on required the ability to URL-encode various strings in order to create
mailTo: links on the fly. Since more than one of our modules needed this ability I decided to create a simple bower component to share the code between modules.
decodeURI. Take a look.