Add kind to Encoder to distinguish file vs data sends.