Local connectedness and extension of uniformly continuous functions