Anagram codecs