bugfix \r\n for iOS newline