a couple of small additions
ensure nsuniqid always passes a string (not unicode) to uuid5