Handle escaping literal hosts properly