Thanks for pointing me to the issue.
I'm not a big fan of generic Util classes though so I fixed it slightly differently. Even if the function is kinda generic, it's only really used in the ResourcePack class, which is the only place where casing matters because it's where X-Com files are loaded, so it might as well stay there.