It may be if the filename is already short or not on a FAT32 filesystem, it returns nothing.  I would not be shocked, and I haven't read the docs for that func.

Anyway, I'm not a huge fan of this "I only care about hacking things to make the game my eyes are looking at now work" mentality.

-[Unknown]