Add name canonicalization function.
Fix name validation of single character special names.