Thread:Project:Support desk/HowTo? Change user-id with underscores to keep as underscores rather than converted to spaces? Possible?/reply (2)

That's how MediaWiki works. If you want to rename your user, you can use Extension:Renameuser (already bundled in your installation, you may need to enable it in LocalSettings.php).