Pathogenesis of flavivirus encephalitis