"An invalid character was found in text content. Error processing resource …" and the invalid source is the EffectiveUserName, that contains my name "Johan P Känngård". There is a hardcoding of the encoding (UTF-8) in the agent ServerStats. Setting the encoding hardcoded to ISO-8859-1 solves this, but it might be better to do this dynamically.