Constify ParseHostname.