change data encoding