SIT-838 fix issue where calling to_s on a string marked safe causes it to be escaped