Sanitize paths.