MZ Error loading audio file on launch, only on encrypted build

Hello,

When I deploy the project without encrypting anything, it loads fine.

When I encrypt it, I get the following error:

Failed to load
audio/se/James.ogg

The thing is, that ogg file isn't an actual file being used anywhere, so I don't know why it's looking for it. If I make an ogg file with that name in the specified dir, it then adds characters to that name and says it can't load it either - same thing, not an actual audio file being used by the game anywhere, so doesn't exist in the directory.

Any ideas?

EDIT: Okay, it's related to a plugin I'm using. I will have to seek help in the thread I already have going for that plugin. Sorry for posting this here!
It's important to note that, especially with the encryption, the engine and game expect HTML compliant characters.
That basically means alpha-numeric, dashes ( - ) and underscores ( _ )

If your file names contain any non HTML compliant characters, it's going to cause problems when you deploy the game.
I don't know if it is the same for MZ as I never used that so far, but on MV the engine had two different load functions, only one of them worked for both encrypted and unencrypted - the other could only be used for unencrypted files.
and something like this error would happen if the plugin used the wrong load function for its files
so if you can access the plugin code AND if MZ has the same double function as MV, then you would have to look for the problematic load call and replace it with the other.

unfortunately I can't tell you the names for those functions in MZ because I never used MZ...

Original thread: https://forums.rpgmakerweb.com/threads/error-loading-audio-file-on-launch-only-on-encrypted-build.179974/