creating new array also if length does not fit

this is the same behaviour as before DefaultDomConverter changes