always remove the newline at the end of the char buffer;
always send texts as utf8; remove repetative code;