imfile: support LF escaping in read mode 1
imfile: support LF escaping in read mode 2