Function normalizeSlashes