Nit fix: Create and use a std::string object for `const char*`.
Nit fix: Create and use a std::string object for `const char*`.

PiperOrigin-RevId: 317973144

google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor