guard against spaces in filenames
fix filename escaping
fix situation where there are no subtitles or audio channels