Fix bug 1247645, failed to connect to Serengeti Server if using non-ASCII user name to login in CLI.