Don't free FileBuilder in serialize function
It's confused both myself and Jan-Michael, when reviewing my changes to this code. It's weird for the serialize function to take ownership of the passed FileBuilder. Don't do that.
We can also add a convenience free function.
CC: @jbrummer