convert to unicode first