Text encoding systems