Update EmacsOutput to use stringstream.