fix conversion to unicode