htmlreport: Use source_encoding to open XML files