fix compilatiion warning

Fix "util.cpp:449:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]".