fix utf-8 support