more stable file loader for nunjucks, and support charsets like `gbk`.