extract_uuid helper method escape for invalid data