Fix possible minor hostname bug relating to unicode