[c++] convert a char* to std::string