Use UTF-8 string instead of str