fix hostport from string.