improve utf8.hpp

Signed-off-by: Jack <jack.wgm@gmail.com>