When processing escaped filenames in diff headers, terminate them correctly.