I used Huffman coding, but in the end it's just a cheap trick with
ord and
char. See the node
Huffman once again. I'm embarrased by the fact that I gave away the solution in the title already. But the hints from
jynx are a great introduction to obfuscation, I think. Also, see
jynx's homenode.