C library and Java wrapper for converting EBTS files to MIME files