Escape special characters in repository file names

fixes #7618