change str2ab/ab2str to really access ArrayBuffer instead typed array.