It would be nice to support encoders in Toast's simulation. The `EncoderJNI` class would need to be added in patches.