account for different record trailing \n for arcs, and the fact that arc header length field includes the trailing newline