Also uppercase acronyms: API, UTF & ASCII.
ID names of images that included slashes would attempt to write save the image in a sub-directory based on those slashes. Also add notes to clarify the intended use of "safe" path functions.
Move to a C++ header to allow C++ features to be used there, use the "utils" suffix as it's preferred for new files. Ref !128147