LJ::canonical_username —
LJ::canonical_username(user);
LJ::canonical_username
user.
cgi-bin/ljlib.pl
the canonical username given, or blank if the username is not well-formed