Going nearly crazy

I don't know because I do not understand what you want to say with that.

The maximum that can happen with a SafeString is that assigning a string with too many characters gets truncated
Which of course can cause a malfunction of the code

But it will be much easier to debug by printing the variables content

than chasing down the field of rabbit-holes because writing to an array of char outside of its boundaries which can cause ANY kind of strange behaviour you can not predict.