fix issue with null terminated clipboard strings

GetClipboardData() returns null terminated strings with a bunch of
garbage after the null character. Strip everything up to the null
character.