do uuid conversion using less dependencies

thanks @archaelus for the cleaner solution