Chunked string write

Implement chunked string writing in buffeted stream.
Remove hard coded references to UTF8 encoding.