add config for new buff encoding;

fixed: upload image can't set encoding to binary 
添加配置，可以设置buff的编码，修复上传图片等二进制文件，文件编码乱码的问题