sdk: Escape network SSID and name when writing profiles.xml

SSIDs can contain ampersands, e.g., "V6 Cafe & Gift Shop". The & and
possibly other special chars need to be escaped when writing
profiles.xml.

Change-Id: Iffef33de22c37d8cb4b5048b92c9ef9c77e18819
diff --git a/sdk/src/java/lineageos/app/Profile.java b/sdk/src/java/lineageos/app/Profile.java
index 5a59e61..b06e056 100755
--- a/sdk/src/java/lineageos/app/Profile.java
+++ b/sdk/src/java/lineageos/app/Profile.java
@@ -295,11 +295,11 @@
             builder.append(" ");
             builder.append(getIdType(mType));
             builder.append("=\"");
-            builder.append(mId);
+            builder.append(TextUtils.htmlEncode(mId));
             builder.append("\" state=\"");
             builder.append(mState);
             builder.append("\" name=\"");
-            builder.append(mName);
+            builder.append(TextUtils.htmlEncode(mName));
             builder.append("\"></");
             builder.append(itemType);
             builder.append(">\n");