MDL-42993 Authentication: No longer filtering spaces in usernames by default.

Causing issues with external authentication we now only filter out space
characters when extendedusernamechars is set to false causing only
a strict subset of usernames to be valid for Moodle.