Fix for users with some special characters in their password not being able to log in

URL encoded the password parameter in the POST body in order to preserve some special characters that would otherwise be lost or create a malformed request.