#16948: Fix quopri encoding of non-latin1 character sets.