diff --git a/roles/vpn/templates/mobileconfig.j2 b/roles/vpn/templates/mobileconfig.j2
index e954845..b22bfa8 100644
--- a/roles/vpn/templates/mobileconfig.j2
+++ b/roles/vpn/templates/mobileconfig.j2
@@ -22,7 +22,7 @@
SSIDMatch
{% for network_name in WIFI_EXCLUDE_LIST %}
- {{ network_name }}
+ {{ network_name|e }}
{% endfor %}