prevent errors from whitespace in hostname