Rename encoder_class to serializer