Fix character length differences

If the OS is windows changes \n to \r\n.