Fix encoding of the report