Cannot write string datatype to FIT file in simulator

When I have a FIT field set to  FitContributor.DATA_TYPE_STRING,  I get this error on setData()

setData string too long for allocated space

Even if the data is only one character long.  Has anyone experienced the same or know the solution?