Set maximum number of threads to character set size.