Removed deprecated iconv. Using String.encode instead