Conversion between UTF-8, UTF-16 and UTF-32