Use CApiFFI to avoid the hassle of UCS2/UCS4