Convert to unicode portably