Add conversion of localhost to hostname