improve creating the element id a little bit by escaping dots and colons