Fix UTF-8 and ASCII-8BIT issue.