Adds encoding header to keep 1.9 happy
Switches to i18n instead of iconv