breaking out of the loop too early, and would therefore miss the last character. * Replaced UTF8CountChars() with a short and safe version as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24173 a95241bf-73f2-0310-859d-f6bbb57e9c96