NXP-12359 guess text encoding in html conversion