Skips macros with no Title attribute and sanitizes filenames before attempting to write the file