Fix chunked transfer-encoding

If a chunk header line fell on a buffer boundary just right, parsing
would fail.