replace Send/Encode => Write for consistency