Tests for handling of special chars in filenames

This exposed bad path escaping in combine_options and format.
Fix missing path shell escaping