treat \r\n as \n