Remove Java6-only method call

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1141909 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
index f5402a6..1eadcb8 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
+++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -502,9 +502,9 @@
                     stringProperties.setProperty( key, value );
                 }
             }
-            StringWriter writer = new StringWriter();
-            stringProperties.store( writer, null );
-            buf.append( writer );
+            ByteArrayOutputStream out = new ByteArrayOutputStream();
+            stringProperties.store( out, null ); // properties encoding is 8859_1
+            buf.append( out.toString( "8859_1" ) );
             buf.append( "#-----------------------------------------------------------------------" + NL );
         }
         catch ( Throwable e )