On mattermost when you go to team settings > General Settings > Team Name, try to copy the name exactly as is and use it, if there is spacing put it inside quotes, like " name here" and see if that works...
Additionally you could try pointing your config file on the command line like -c path_to_your/config.json