Escape a path name if it hasn't already been escaped