Mnemonic encoding of binary data, based on Oren Tirosh's mnemonic.c