Avoid constructing std::stingstream until needed