Charset settings
Max length function depending on charset and implements minLength function