code: func (c *Charmap) NewEncoder() *encoding.Encoder {
  	c.Init()
  	return &encoding.Encoder{
  		Transformer: &cmapEncoder{
  			bytes:   c.bytes,
  			replace: c.ReplacementChar,
  		},
  	}
  }
docs: // NewEncoder returns a Transformer that converts from UTF8 to the
  // 8-bit character set.  Unknown mappings are mapped to 0x1A.