Moved ToUTF8 to global Struct class
Better handle nasty json_encode() recursion during logging.
comment update