support for utf-(16|32)(be|le)