Fix bug #706: 2nd try. Implement the charset rules as follows: