qsa/clipboard: Make sure to send \0 character
ui/gtk: Improve error checking, QDECREF the dict