fun Int.toUtf8(buffer: ByteArray, offset: Int = 0): Int
Encodes this code point to UTF-8 and writes result into buffer starting from offset.