Validation for hostname config option

https://webmademovies.lighthouseapp.com/projects/65733-popcorn-maker/tickets/3413-if-hostname-value-has-not-protocol-exporting-breaks#ticket-3413-3