Adjust "encoder" signature to fit cpp usage