FELIX-3858 : Service descriptor written in wrong encoding. Apply patch from Mirko Zeibig.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1437362 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/IOUtils.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/IOUtils.java
index 18aa50f..39dbee7 100644
--- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/IOUtils.java
+++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/IOUtils.java
@@ -19,10 +19,12 @@
 package org.apache.felix.scrplugin.xml;
 
 import java.io.File;
-import java.io.FileWriter;
+import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.OutputStreamWriter;
 import java.io.StringWriter;
+import java.io.Writer;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -73,7 +75,7 @@
     public static ContentHandler getSerializer(final File file)
     throws SAXException {
         try {
-            final FileWriter writer = new FileWriter(file);
+            final Writer writer = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");
 
             final TransformerHandler transformerHandler = FACTORY.newTransformerHandler();
             final Transformer transformer = transformerHandler.getTransformer();