doubling of '\' to escape \r as a carriage return