Fixed according to CR-IC-5706
use encoding info when building hash for contents + rebuild content dependent indices upon encoding change