method TextEncoder.prototype.encode
Usage in Deno
```typescript
import { TextEncoder } from "node:node__util.d.ts";
```
TextEncoder.prototype.encode(input?: string): Uint8Array
UTF-8 encodes the `input` string and returns a `Uint8Array` containing the
encoded bytes.