TypeError: decoding str is not supported in CSV export

That same traceback noted here [Mega Thread] Version 12 Release Bugs - #97 by Not_a_countant

and recently reported CSV from Report broken · Issue #19827 · frappe/erpnext · GitHub