Manual:$wgMaxNameChars

Details
Maximum number of bytes in username.