remove a bug when newline generated in updateEXPR
a bug for the utf8 writing : the newline character
write newline then clear to end of line