don't chop the last char if no trailing linefeed