Added canonicalizePassword.