fix hostname format