Fix the Gruntfile on Windows.
Fix multibyte string counting on Windows.

On Windows the "mblen" function is different from the one on Linux and
BSD, the former only accepts a string of exact one charactar, while the
latter would count in the string until it read one charactar. So the
previous implemention uf unicode-utils can not work on Windows.