Fixed a problem with the default profile in which max and min numeric values
were specified incorrectly. Generalized rule-charset-count to allow callers to
pass an function object to perform replacements in the string, and used this
to enable special behavior on rule-capitals to uppercase a letter (rather than
replace it with a random capitalized letter) if a letter happened to be
randomly chosen in the string.