Change format of encoder.