Strip out \r in windows text mode