ITS#7935 fix schema RDN normalization
ITS#7935 partially revert prev patch

Can't allow special chars in RDN, not all OSs/filesystems support it.
ITS#7935
ITS#7915 fix memory leaks in previous patch