correct text coding