export function stringToUnit8Array(data: string) { var enc = new TextEncoder() return enc.encode(data) }