Newlines/Non-printable characters are visible

I am using gradle to download a localise.biz Android localization.
I am parsing the resulting XML with groovy.util.XMLParser.
I want to write the content of a particular node into a separate file, because it contains HTML and Android does not allow storing too long strings in regular resource files.

When I extract the HTML and display it in Android, \n and unicode control blocks such as \u0020 are visible. What am I missing here?

            // parsing android strings resource file and extract privacy policy html document
            def resources = new XmlParser().parse(new File(buildDir,s[1]))
            def privacyPolicyNode = resources.find { node ->
                (node.attribute("name") == "privacy_policy_txt")
            }
            def fileForPrivacyPolicy = new File(buildDir,s[2])
            if(!fileForPrivacyPolicy.exists()) {
                fileForPrivacyPolicy.parentFile.mkdirs()
                fileForPrivacyPolicy.createNewFile()
            }
            def localizedString = privacyPolicyNode.text()
            println localizedString
            def writer = new BufferedWriter(new FileWriter(new File(buildDir,s[2])))
            writer.write(localizedString)
            writer.flush()

The particular string entry looks like this : https://pastebin.com/0538E3f8

And I am loading the HTML like this:

val htmlString = resources.openRawResource(R.raw.privacy_policy).bufferedReader().readText()
webView.loadData(htmlString,"text/html","UTF-8")
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum