repaired a bug related with C strings.

note:
if a NSString contains the char Ã¾, and I guess it’s friends also count, then [NSString length] will return a value smaller  than actual.