fix bug with unicode characters