boost::format should be cool enough to not require c_str() here.