Support low values of line2byte

Fixes #567