Sanitize filenames to remove invalid characters
Variables in functions.json can be derived from other variables