Today, I tried to convert an XML document to JSON, and found a new error that I don’t have seen earlier:
XML value cannot be parsed: ‘There is no Unicode byte order mark. Cannot switch to Unicode.’
This is due to encoding that does match the content anymore (for a reason unknown), so I decided to just replace it away:

replace(outputs(‘Get_file_content_|_xmlfile’)?[‘body’],’encoding=”utf-16″‘,”)
After getting rid of the encoding tag in the XML definition, all is good.