Fix pretty printer for strings with high bytes [ci skip]
Fix fs.writeFile helper