Address iconv.internal_encoding deprecated in PHP 5.6

Fixes issue #344