diff --git a/src/Controller/UwDownloadCsvController.php b/src/Controller/UwDownloadCsvController.php
index 46cfdb403876ca3e02e71d94de230c644c68893c..d2009b787d28316d313227bdee36986d09f02206 100644
--- a/src/Controller/UwDownloadCsvController.php
+++ b/src/Controller/UwDownloadCsvController.php
@@ -315,15 +315,15 @@ class UwDownloadCsvController extends ControllerBase {
           }
         }
 
-        // Set the data about the menu link.
+        // Set the data about the menu link, making sure the title is CSV-safe.
         $data = [
           'menu_name' => $link->menu_name,
           'link_id' => $link->mlid,
           'parent_link_id' => $parent_id,
           'alias' => $alias,
           'link_path' => $link_url,
-          'title' => '"' . unserialize($link->title) . '"',
-          'has_children' => $link->has_children,
+          'title' => '"' . str_replace( '"', '""', unserialize($link->title)) . '"',
+          'has_children' => $link->has_children == 1 ? 'yes' : 'no',
           'p1' => $link->p1,
           'p2' => $link->p2,
           'p3' => $link->p3,