Fix "bytes written" count in pktline.WriteString
I randomly came across a small bug where we reported an incorrect number of "bytes written". I am not aware of any actual problem caused by the bug but it just looked weird to see the code do the wrong thing.