encoder

An encoder implementation.