backport keyword argument support for bytearray.decode