Eric wrote- About the case sensitivity, I think this must be settable by galleries admins (in config_local file or in #_config database table)
I think the default configuration must be "no case sensitivity".
Eric wrote- About the treatment of special characters. I think the easiest way is to ban them altogether. The use of special characters in logins is still quite marginal and, in some cases, abnormal and can be dangerous.
All special characters must be escaped (thanks to mysql_real_escape_string) and there's no use of no allowing them.
But if you really want that , you can add it in config with a special var (array for example) that contains all caracters to be excluded. Of course that array will be empty by default.