Changed iconv arg order
Fixed encoding garbage on windows.