Data has to be encoded, since the logger is calling an json_encode(). Without encoding it will crash with german umlauts