Fix off-by-one in enc_text::find()