Fix Copy/Paste problems on X11
Fix Copy/Paste problems on X11

The target of the TARGETS type should be XA_ATOM and not XA_TARGETS when
requested. Since we are sending a number of ATOMS the size should be set
to the integer size and not the char size.

The size field of the atoms is also the number of atoms and not the size
of the array. This caused some clients to wrongly interpret the data and
read garbage in the X11 packet.

I also add the more modern representation for UTF-8 and clarify the
error message if a client attempts to request a type we don't know
about.

This fixes #10431

okamstudio/godot,firefly2442/godot,Valentactive/godot,MarianoGnu/godot,groud/godot,pkowal1982/godot,pkowal1982/godot,akien-mga/godot,vkbsb/godot,NateWardawg/godot,Zylann/godot,DmitriySalnikov/godot,guilhermefelipecgs/godot,akien-mga/godot,Zylann/godot,firefly2442/godot,RandomShaper/godot,Paulloz/godot,DmitriySalnikov/godot,ex/godot,pkowal1982/godot,Shockblast/godot,honix/godot,sanikoyes/godot,mcanders/godot,okamstudio/godot,ZuBsPaCe/godot,vkbsb/godot,okamstudio/godot,RandomShaper/godot,Shockblast/godot,akien-mga/godot,josempans/godot,honix/godot,okamstudio/godot,ex/godot,ex/godot,RandomShaper/godot,firefly2442/godot,ex/godot,ex/godot,groud/godot,Zylann/godot,MarianoGnu/godot,sanikoyes/godot,ZuBsPaCe/godot,Paulloz/godot,sanikoyes/godot,vnen/godot,ZuBsPaCe/godot,vnen/godot,Shockblast/godot,honix/godot,Valentactive/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,firefly2442/godot,BastiaanOlij/godot,NateWardawg/godot,DmitriySalnikov/godot,groud/godot,ex/godot,sanikoyes/godot,mcanders/godot,mcanders/godot,Shockblast/godot,pkowal1982/godot,godotengine/godot,firefly2442/godot,BastiaanOlij/godot,mcanders/godot,vkbsb/godot,Valentactive/godot,Zylann/godot,Faless/godot,okamstudio/godot,BastiaanOlij/godot,sanikoyes/godot,guilhermefelipecgs/godot,Valentactive/godot,groud/godot,Valentactive/godot,vkbsb/godot,RandomShaper/godot,Faless/godot,MarianoGnu/godot,RandomShaper/godot,akien-mga/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,vnen/godot,guilhermefelipecgs/godot,RandomShaper/godot,NateWardawg/godot,okamstudio/godot,BastiaanOlij/godot,okamstudio/godot,vnen/godot,honix/godot,vnen/godot,Zylann/godot,MarianoGnu/godot,josempans/godot,firefly2442/godot,akien-mga/godot,sanikoyes/godot,pkowal1982/godot,Valentactive/godot,Shockblast/godot,mcanders/godot,Faless/godot,groud/godot,Faless/godot,NateWardawg/godot,sanikoyes/godot,Valentactive/godot,ex/godot,Paulloz/godot,akien-mga/godot,MarianoGnu/godot,godotengine/godot,ZuBsPaCe/godot,vkbsb/godot,Paulloz/godot,firefly2442/godot,josempans/godot,NateWardawg/godot,godotengine/godot,ZuBsPaCe/godot,Zylann/godot,guilhermefelipecgs/godot,Faless/godot,RandomShaper/godot,Shockblast/godot,honix/godot,guilhermefelipecgs/godot,akien-mga/godot,Faless/godot,akien-mga/godot,sanikoyes/godot,vnen/godot,DmitriySalnikov/godot,josempans/godot,DmitriySalnikov/godot,BastiaanOlij/godot,Zylann/godot,josempans/godot,Valentactive/godot,DmitriySalnikov/godot,MarianoGnu/godot,okamstudio/godot,Shockblast/godot,okamstudio/godot,guilhermefelipecgs/godot,vkbsb/godot,BastiaanOlij/godot,godotengine/godot,Paulloz/godot,Zylann/godot,okamstudio/godot,BastiaanOlij/godot,NateWardawg/godot,MarianoGnu/godot,vkbsb/godot,josempans/godot,Faless/godot,josempans/godot,vnen/godot,MarianoGnu/godot,ZuBsPaCe/godot,Shockblast/godot,Paulloz/godot,pkowal1982/godot,NateWardawg/godot,NateWardawg/godot,guilhermefelipecgs/godot,NateWardawg/godot,josempans/godot,groud/godot,vnen/godot,pkowal1982/godot,honix/godot,godotengine/godot,godotengine/godot,vkbsb/godot,godotengine/godot,ex/godot,firefly2442/godot,Paulloz/godot,Faless/godot,mcanders/godot,godotengine/godot,pkowal1982/godot,ZuBsPaCe/godot