YAML serializer