Fix space encoding in password for git auth

Related to #2826
If password contains space character, ``urlencode()`` replaces it with '+' sign, but as of RFC 3986 it should be '%20'. This PR fixes it and uses ``rawurlencode()`` instead.