Fix caplen field in io.go writer.Write()