Quote profile names, so profile names with spaces work correctly.
Use uuidgen to generate a unique UUID for new profiles.