Fixed UTF8 issue in history query result