fix utf-8 compatibility