URL encoding username and password to be used in curl URL