ensure logstr is unicode