CB-5468 improve config.xml encoding handling

Assume files without a BOM are UTF-8 anyway