Changed chunk encoding to use exact rather than power-of-2 length specification.