Work around MemWriter not being able to seek anymore