backported carbon hostname patch to 1.4.x