Added mixed language word encoding detection.