Convert sysem.c to use unicode buffers.