fix parsing of string form of DN

The current implementation fail to parse DN with http:// in the value of an attribute

A unit test is added