Replace unsafe C functions Proposal

kwsys is fine for string-as-path functions I think. It is, however, still C++ and therefore safestringlib is of limited utility.