Train Bandit: Crash fix for non-latin Windows usernames

Fixed a crash when a Windows username has non-latin characters