I'm looking for a way doing it in Unicode and without a fixed size array. I'm doing pretty well atm I guess. Still some work to do though.

It doesn't include the very first character into the search, that is why it fails.