Manual:$wgMaxNameChars

Details
Sets the maximum number of bytes in username.