refs #6623 #6146 #6619. Fix UTF8 issue.