force err printstream to have UTF-8 encoding if availableto fix chinese and cyrillic characters in output (commit: bff3cc3)
close iterator after for in loopCo-Authored-By: Jampi0n <[email protected]> (commit: 91a806e)