Adapts iconv() call for testing