fix encode bug if the container or object has a chinese name