You can easily avoid homoglyph attacks or similar stuff by following the relevant unicode security considerations. I'm on
Moderately Restrictive level for General Security Profile for identifiers.
http://perl11.org/blog/unicode-identifiers.html
Forbidding mixed scripts fixes this attack. You also need to normalized names, and a few more minor things.