switch from std::string to SmallString + raw_svector_ostream.