The solution is a change in the call to xmllint, as shown here. The string function returns a utf8 encoded string of the content in the older and new xmllib-versions.