Strip default port numbers, close #1440