reg: use snprintf for string values in num_str()