simplify ds-rdata sanitizer code