enable encoding feature