Example of mtools' Log2CodeConverter