Make File::sanitize handle extension in filename