Convert from ArrayBuffer to Buffer.