update encoding to adhere to rfc3986 (from MDN)
Merge pull request #1 from omsmith/master

update encoding to adhere to rfc3986 (from MDN)