change file offset to use byte alignment