Add range sanitation macro to sysfs helpers