handle utf-8 chars