fix error with unicode characters