parse chunk header