Texture Name mismatch on export

So in my export plug-in, I use the texture writer from the example code and use it to write all the textures to a directory:

SU_CALL(SUTextureWriterWriteAllTextures(texture_writer_, textureDirectory.c_str()));

In this small case I have, it writes out a file named “ge(1)1.jpg” into that directory. I don’t manage that file name, that’s just what it is.

But later, when I’m trying to find the texture associated with a given face using:

        SU_CALL(SUTextureGetFileName(frontTextureRef, texture_path));

What is returned is “ge(1).jpg” which is close, but not the same. Any idea how to deal with this?

BadTextureNameExample.skp (681.0 KB)