replace line-ending on output, instead of on input