FileOutputStream fout = new FileOutputStream(target);
OutputStreamWriter strW = new OutputStreamWriter(fout, cs);
IndentStackWriter writer = new IndentStackWriter(strW);
HashMap<String,String> t = new HashMap<String, String>();
writer.push();
for(Map.Entry<String,String> kv : props.entrySet()){
t.put( "key", TextUtil.htmlEncode(kv.getKey()) );
t.put( "value", TextUtil.htmlEncode(kv.getValue()) );
writer.println(TextUtil.template(metaTmpl, t));
}