Update usage of iconv_get_encoding so that it is only used for PHP < 5.6.
Merge pull request #353 from akrabat/iconv_get_encoding

Update usage of iconv_get_encoding so that it is only used for PHP < 5.6