ucnv_encode - version (2) - to be archived; it's memory inefficient