Dirname and Filename sanitized