UTF-8 and if so, convert using uft8_ascii(), otherwise, just replace every non-US-ASCII byte with a question mark. RFC*822 does not allow anything but US-ASCII in headers.