Encode outgoing headers in huffman encoding