Patched clipboard functions for proper utf-8 handling

If you try to copy and paste cyrillic text from the clipboard you'll get a line or more of "\xXX" entites which are technically correct but are not what you expect. So i"ve added some UTF-8 handling code to clipboard routines.