Fix lifetime-maintenance bug with std::string and c_str()