Split endpoint into hostname and port