fix mbstring wrapper utf8_substr() mistake, and update the utf8_* helper functions to make them behave correctly.
Merge pull request #1314 from hellaslubo/master

fix mbstring wrapper utf8_substr() mistake, and update the utf8_* helper...