Use XSLT transformation for mind maps with explicit encoding given in
XML directive

Use piped reader instead of string
Back to Java 5 :)