Refine read charactor task by enforce to append \0 while writing
a character