[#31786] get_html_translation_table requires encoding value for PHP 5.4. Fix #1666