fix HTTP chunked transfer-encoding parsing