Encodes input and returns the resulting object.
codecs/IncrementalEncoder.encode
IncrementalEncoder.encode