The issue has now been fixed. The old solution used the nation key for getting the ruler ... and got a translated version of the ruler name to be used as a username while connecting. That was really silly as it does not work in lots of different situations -- for example when playing using different languages. I have changed the solution into using the nation ID instead. As a bonus, the username is updated after connecting.