Convert between unix, windows and mac newlines