Early bail for encoding empty strings.
Fix broken names in huffman test.