changed default for sanitizePath