escape username and password fields for curl

resolves errors when users have special characters in their passwords
Merge pull request #42 from tdombrowski/escape-username-password

escape username and password fields for curl