Get utils.getSafeFilename with tests