Detect garbled characters, and find the reason.