escape username and password fields for curl

resolves errors when users have special characters in their passwords