ignore trailing carriage returns in file parser