Fix dovecot passwdfile change (#8145)
- Fix dovecot passwd-file handler
- Set new password hash correctly
- If password hashing failes during password change request, abort trying to change the password.
- Escaping hashed password is not needed and actually breaks if 'password_dovecotpw_with_method' is set to true (escaping the {METHOD} in the passwd file)