Ensure correct encoding of default user name when no config is present