Escape the metadata filename for 'source' as for example filenames with space
in otherwise will fail.