Added utility function unicodeLength to get length of unicode strings
takeing care of surrogate pairs.
- "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡".length is 20 we want it to be 10
- unicodeLength ("𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡") returns 10
- replaced all foo.length by unicodeLength (foo)