Quick and dirty pass at removing iconv dependency.