FELIX-4441 : The default value is not escaped correctly.. Applied patch from  Mikael Svahn 

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1572873 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/changelog.txt b/scrplugin/generator/changelog.txt
index 61180bb..cbd4545 100644
--- a/scrplugin/generator/changelog.txt
+++ b/scrplugin/generator/changelog.txt
@@ -1,3 +1,9 @@
+Changes from 1.8.4 to 1.8.2
+---------------------------
+** Bug
+    * [FELIX-4441] - The default value is not escaped correctly.
+
+#
 Changes from 1.8.2 to 1.8.0
 ---------------------------
 ** Improvement
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java
index 49b55e8..4b35b3c 100644
--- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java
+++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java
@@ -317,9 +317,9 @@
         }
 
         String result = value.trim();
+        result = result.replace("\\", "\\\\");
         result = result.replace(" ", "\\ ");
         result = result.replace(",", "\\,");
-        result = result.replace("\\", "\\\\");
         return result;
     }