update enc for mingw