A file opened in text mode on Windows will have \n automatically changed to 13,10 while Darwin and Linux leave it as 10.
Set the file to binary mode to avoid this automatic conversion so that Darwin, Linux and Windows have equivalent treatment of \r.
Add a comment specifying why we are doing this.