Use new Buffer instead of new Uint8Array.

Change-Id: Iaa9ca6ca3fc56a4be258d052b3295a839d4e2820