docs: function write_bstr_type(out, opts) {
  	switch(opts.type) {
  		case "base64": return Base64.encode(out);
  		case "binary": return out;
  		case "file": return _fs.writeFileSync(opts.file, out, 'binary');
  		case "buffer": {
  			if(has_buf) return new Buffer(out, 'utf8');
  			else return out.split("").map(function(c) { return c.charCodeAt(0); });
  		}
  	}
  	throw new Error("Unrecognized type " + opts.type);
  }