utf8ToString() can be done outside of the loop