Fixes character length differences

Fixed character length differences in Windows caused by newline new
line. \r\n instead of \n
Fix character length differences

If the OS is windows changes \n to \r\n.
Fix character length differences

simplified version using system line separator for line breaks
Merge pull request #135 from kevinwu1/master

Fixes character length differences