This fixes all the issues with the X11 selection in addition to switching the clipboard to always be UTF-8.