This commit ensures that question marks are encoded, in accordance with RFC 2047, section 4.2, rule (3). Closes gh-30252