avoid dependency on iconv. makes it easier to use on windows. see #12