backported carbon hostname patch to 1.4.x
Merge pull request #166 from prymitive/carbon_hostname14

backported carbon hostname patch to 1.4.x