add support for << and >> to CharTopology.toString()