Pass io.Writer to Marshal