note that ruby must be compiled with iconv support