security: In FilePrivateKeyStorage, need to use c_str() when opening an ofstream.