In new ClassAds, you would call ClassAd::Lookup() and ClassAdUnParser::Unparse(). The latter call prints to a std::string.

Adding a compatibility function or changing the handful of callsites would be short work.

Developer time: 1 hour or some student time