Use std::to_string instead of ostringstream where possible