Swap jschardet for the actively-maintained chardet library for text encoding detection. chardet ships with TypeScript definitions, so the local jschardet module shim is no longer needed.