fixed potential \r <-> \r\n conversion problem