On continuous extension of uniformly continuous functions and metrics