Update utf8.cpp

Fix typecast warning