Fixed paste issue with UTF8 charsets through X.