What about a baseclass of `Encoder` that has `get_encoder_from_extension` classmethod?