Added UnaryEncoder.