Fixed #21444 -- Fixed UnicodeEncodeError when passing non-ascii chars to ContactForm.