Make lib work with Uint8Array on input