fix default login on windows

getenv("USER") doesn't work on windows. Also winapifunctions use utf16
strings.
Merge pull request #294 from gfgtdf/utf16_to_utf32

fix default login on windows