It feels like it would be better to make strings as safe, and only log ones that have been marked as such.

EDIT: "mark", not "make"