File serializer