fix handling of encoding of password, username and service