Don't use deprecated strstream.