fix encoding and validation errors in test reports