Removed uses of raw c-string manipulation functions.