The API that any encoder needs to implement are `def initialize(options = nil)` and `def encode(value)`.