More work on prefix encoding.