Use utf8 for text pasted from the clipboard
Merge pull request #3053 from jhsrennie/paste_utf8_2

Use utf8 for text pasted from the clipboard