Decodes a string to binary data using the specified or auto-detected format.
The encoded string
Optional
Optional encoding format. If not specified, will auto-detect.
The decoded binary data
Error if the content cannot be decoded
Decodes a string to binary data using the specified or auto-detected format.