encodeAsync 
  Encodes the content of a string to a Uint8Array.
Will pick an encoding based on settings.
Parameters
content
The content to decode as a string.
Encodes the content of a string to a Uint8Array.
Will pick an encoding based on settings.
The content to decode as a string.