convert cstring to std::string