Convert from Uint8Array to Buffer