Simplified email address validation function
Added a message in case a charset is not supported in function process_header_encoding