Use buffer for StringStreamWriter.

Remove bufferstream usage.