input should guess eol char, output should have rn