Safety check for UID legacy function and international number format function