fixed bug with unicode strings