Password encoding fix

EVERESTTWO-378: URL encode the password to fix issues with passwords that contain special characters

It also fixes EVERESTTWO-492 and bugs introduced by commit fcdc38beeeec58eb0c2df5bdaf70c735f9aa1543