sanitize filetype