iconv_set_encoding - deprecated in php 5.6

Fix #344