udf: Convert UDF to new truncate calling sequence