Modified the Admin.get_login method on Windows to deal with potential encoding issue with JRuby.