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