Throw EncoderException when encoding an unsupported FunctionCode