seg: UTF-8 support