issue #5057, convert const char* to std::string&