use TextDecoder for ArrayBuffer to string conversion