Minor refactor to use io.Copy over WriteTo/ReadFrom.