ENH: added the _encoding_writer