move numchars stuff to Data.Text.Array.unsafeIndex