add String#to_safe_utf8 method, and use it in append log messages