Recover from exceptions in Util.string()

Turning on TRACE might result in exceptions (particularly NPE) thrown from `toString` of partially de-serialized objects, thus hindering debugging. This tiny change recovers from such exceptions.