v3.7.0: support more encodings (use iconv-lite instead of singlebyte)