Running encode.py over the current AllSets.json throws errors of the form
UnicodeEncodeError: 'ascii' codec can't encode character [code] in position 27: ordinal not in range(128)
It appears to be hung up on the values "π" and "∞" found in Unstable cards "Just Desserts" and "Infinity Elemental", respectively.