Add support for P1 and P2 (ASCII) files