Add lib for encode/decode mnemonic chars and fix fga output