Fix hostname newlineissue