fix default login on windows

getenv("USER") doesn't work on windows. Also winapifunctions use utf16
strings.