fixed encoding interface