Add AllowedExtensions property to base handler to check for invalid extensions generically.