Replaces readAsBinaryString by readAsArrayBuffer