encode UUID fields