Validate hostname based on RFC-1123
Validates if string is a valid host based on RFC-7230.
Convert dates to rfc822 format