std::string to StringRef.