Relaxed hostname parsing