Convert uid to string