Introduce sanitizeFilePath