BUG: Fixed incorrect string length calculation when writing strings in Stata


Strings were incorrectly written using 244 character irrespective of the actual
length of the underlying due to changes in pandas where the underlying NumPy
datatype of strings is always np.object_, and never np.string_. Closes #7858
put the issue number here as well, say that this raises ``ValueError``? (or whatever it does)