started work on HTMLCodec's StreamingEncoder implementation