handle UTF-8 characters