refactor HTMLCodec instantiation
refactor EncodedWriter from StreamCharBuffer to grails-core as EncodedAppender