fix bug reading passwords

prevent escape characters in raw password strings to be interpreted by printf