fix clipboard encoding