Issue warning on joins with character columns and different encodings (bug #5266, #5159)