Change Encoder function name to fit with the naming convention