special case same-encoding strings, length-1 needles.