fix utf-8 exception