support serializing Collection directly as a string