Change usage of iconv to String.encode to get rid of warning