Decode the bytearray using the codec registered for encoding.
encoding
The encoding with which to decode the bytearray.
errors
The error handling scheme to use for the handling of decoding
errors. The default is 'strict' meaning that decoding errors
raise a UnicodeDecodeError. Other possible values are 'ignore'
and 'replace' as well as any other name registered with
codecs.register_error that can handle UnicodeDecodeErrors.