Invalid characters on registration

Hi, I installed Elgg in a new server,  I`m getting a registration error each time a new user tries to register: 'registration:invalidchars' => 'Sorry, your username contains invalid characters.', I also looked at engine/lib/users.php but it seems to be ok.

Any ideas?