Defend against ridiculously long lines.

Degrade "gracefully" when a line has so many line-wraps that it
overflows uint16_t. Not nice, but far better than aborting.