communicating with serial port but want to know how to control encoding