Switch from bufferoverflow to exception on serializer