Fair point. I believe this was resolved regarding cross-platform play though.
Relevant feature request I made long ago:
The catch-all case would probably be just to use UserId, not username. All codework should be done using UserId and username only being used for display purposes.