Cleaned up ascii to use the new streambuf.
Also implemented xsputn for improved efficiency.

Signed-off-by: Peter Atashian <retep998@gmail.com>