bug-18653: sanitize jal_dump input before converting to hex