Fix the regexp used in escape_path