Fix minor bug in LDAP username generation.