modify to use unifill.InternalEncoding instead of Unifill

InternalEncoding provides O(1) methods to access each code points.
The complexity of handleUnicode would be O(n) where n is the length of
the string.