HEIMDAL:lib/wind: fix wind_ucs4utf8() and wind_ucs2utf8()