limited hex to 65536 characters to address non-termination on some data
updated to new version