So My addon allows you to invite other addons to join it. While I can use slash commands, players with strange letters in their names become an issue. My solution was to add my own kind of "Addon Invite" to the right click character context menu.
Edit: Some things to note:
* All links are handled with this script handler, including item links, spell links, etc.
* link looks like this: player:egingell:5 or player:egingell.
* text looks like this: egingell.
tekPlayerMenu is probably a better example; you can view the code online without downloading or unzipping anything, and it doesn't have any code to wade through that isn't directly related to adding entries to the player name context menu.