Unicode conversion routines between UCS-4 and UTF-8