- supported to use __tostring for encode table if found in the metatable