Improve the speed of grn_str_charlen_utf8

Use GRN_BIT_SCAN_REV to remove the first for-loop.
Simplify the second for-loop.