Optimize ASCII file reading with EOL format detection and decoding.