Added encoding attribute to Send command