change type of encoding