@staticmethod<EOL><INDENT>def debug_bad_encoding(data):<DEDENT>
at_fault_files = set()<EOL>for source_file_data in data['<STR_LIT>']:<EOL><INDENT>for value in source_file_data.values():<EOL><INDENT>try:<EOL><INDENT>json.dumps(value)<EOL><DEDENT>except UnicodeDecodeError:<EOL><INDENT>at_fault_files.add(source_file_data['<STR_LIT:name>'])<EOL><DEDENT><DEDENT><DEDENT>if at_fault_files:<EOL><INDENT>log.error('<STR_LIT>'<EOL>'<STR_LIT>',<EOL>'<STR_LIT:U+002CU+0020>'.join(at_fault_files))<EOL><DEDENT>
Let's try to help user figure out what is at fault.