XF 2.2 Imported threads, truncate the file name?


Bottom line, I have many thousands of threads that were imported from vB to XF some time ago. I'm looking for a way to find and replace the actual thread file name... ie; the threads that return 404's have "Array" added to the end. Example:

Should be:

Obviously, I need to remove that "Array", as that's the only difference, causing the 404 .

Searching, I found the addon "Post Content Find / Replace" , but that appears to be for contents, not the file names. I also tried "Custom 404 page by Siropu", which allows me to add a redirect to the correct address, but one by one :( .

Anyone have suggestions on the correct way to handle this? Thanks in advance to anyone taking the time to reply!