libqi: Fix #5118 crash with windows in {g,s}etenv (wchar conv).
libqi: Fix #5118 crash with windows in {g,s}etenv (wchar conv).

aldebaran/libqi,vbarbaresi/libqi,aldebaran/libqi,bsautron/libqi,aldebaran/libqi