Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.