Reverted temporary hackery used for fixing double-length unicode chars.
Because fixed unicode string length problem (arising due to surrogate pairs)
in libcursor, so no cludgy solutions here were needed.
Implemented onpaste handler.
CRITICAL: Fixed absence of getChar function!