More robust UDID handling.