don't assume Uint8Array exists in global namespace