Wrap encoding API into Encoder module.