Wrap username and password in encodeURIComponent to be URL safe.
Merge pull request #6 from amonshiz/url-encode-parameters

Wrap username and password in encodeURIComponent to be URL safe.