         @_write_file(@hosting_map, @_stringify_json(@_create_hosting_map())) if @hosting_map?
         @_write_file(@index, @_create_index()) if @index?
         @_write_file(@appcache, @_create_appcache()) if @appcache?
-        @_write_file(@bundle, @_bundle_content.join("")) if @bundle?
+        @_write_file(@bundle, @_bundle_content) if @bundle?
 
         @_print_stats() if @print_stats
         @cache.flush()

                source = fs.readFileSync(module.path)
                output = @encode(source, module)
                if @bundle
                    @_bundle_content.push(output)
                @_write_file(destination, output)
                module.hash = @calc_hash(output)
                module.size = output.length

            version: packagejson.version
            hash_func: @hash_func
            modules: modules

        if @bundle
            filepath = path.resolve(@root, @bundle)
            relative = @_relativate(filepath)
            url = @_host_path(relative)

            bundle = 
                hash: @calc_hash(@_bundle_content)
                url: url

            @_manifest_content.bundle = bundle

        if @coding_func?
            @_manifest_content.decoder_func = @coding_func.name
