in Autogen_v0.4/multi_agent/multi_agent_implementation.py [0:0]
def sanitize_json_string(self, json_str):
# Remove or replace control characters (ASCII codes 0-31 and 127)
sanitized_str = re.sub(r'[\x00-\x1f\x7f]', '', json_str)
return sanitized_str