Using colon in username

The only way to give curl a username that contains a colon (:) is to encode it in the URL (http://curl.haxx.se/mail/archive-2009-12/0009.html). These commits add url-encoding of username and password and put these into the remote url instead of giving `--user <user:password>`.