got some of the way to escaping filenames for use with git