GUID fixes.

- Always generate guids of exactly 8 characters (no 7 or 6-character guids).
- Remove unneeded base conversion code.
- Fix check for guid collisions -- we were checking before adding the hyphen, oops.