Nit: it should be `sanitizePort`.