iconv_set_encoding - deprecated in php 5.6

Fix #344
Really? Even a simple method setEncoding() would be better.