Finds the minimum charset for this string NULL means US-ASCII.
input text
length of the input text
the minimum charset or NULL for US_ASCII.