A generalization of isometries to uniform spaces