fix send_file() error on mime type (refs #4678)