Escape spaces and hyphens when generating cli filenames