fix handling of DN with comma as per rfc1779

Ticket: http://rt.dcache.org/Ticket/Display.html?id=8285
Ticket: http://rt.dcache.org/Ticket/Display.html?id=8312