Allow de/serializing via io.Reader/io.Writer