Fix crash on getting std::string value.