API: fix clipboard paste for utf-8

Fixed an incorrect clipboard text transferring for multibytes.
```ruby
paste("1398279958253.png", 'тест')
```