code: function (file) {
        var result = getRawData(file), type = JSZip.utils.getTypeOf(result);
        if (type === "string") {
           if (!file.options.binary) {
              // unicode text !
              // unicode string => binary string is a painful process, check if we can avoid it.
              if (JSZip.support.uint8array && typeof TextEncoder === "function") {
                 return TextEncoder("utf-8").encode(result);
              }
              if (JSZip.support.nodebuffer) {
                 return new Buffer(result, "utf-8");
              }
           }
           return file.asBinary();
        }
        return result;
     }
docs: Returns the data of a ZipObject in a binary form. If the content is an unicode string, encode it.
  @param {ZipObject} file the file to use.
  @return {String|ArrayBuffer|Uint8Array|Buffer} the data.