v1.0.0
Normalize a url or url fragment by percent-encoding exactly the chars encodeURIComponent does
Source code on GitHub