Export (playlist) to CSV is broken in macOS

Export (playlist) to CSV is broken in macOS.
The exported file contains codes which cannot be read by programs (like iTunes). The codes are embedded in the audio file paths and look like this (file://, %20, %CC, %81, %83, %5B, %5D etc.). As a former database admin/analyst I can strip them out, but it’s a painful process and not user-friendly.

Sample CSV file with embedded codes.

What’s frustrating about this is that there’s an Export playlist to Music App command in the DJ Set History, and it works perfectly but only with playlists in the DJ Set History! We want to use this command with our custom playlists.
Screenshot 2023-08-09 at 10.39.11 AM

We need djay Pro to export playlists in a format compatible with other programs. The easiest file format is M3U. An M3U file lists each audio file in the playlist. It’s just a plain text file with a .m3u extension. Here’s an example screenshot of a working .m3u file (exported from djay Pro and cleaned up by me).