Improve copy_to_clipboard: fixes #7.