minor revision

encode text input