a toy extension to encode/decode text using foyue text