If 0x0D is what I think it is - carriage return - try opening the file in binary mode.