Support for turtle serialization