birdman
Moderator
A Python str is an array of Unicode points. How did you get a filename in there that might not have been valid utf8 in the first place?name is str in getItemDisplayName. But what is IMPORTANT here, "filename" is still intact inside str, it's just in different format.