Attempt to make getHash in DomUtils consistent across JVMs.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>