Use std::string in translatePassword.