Teach --dep-info how to escape filenames containing spaces

cc #17627