fix issue with unicode characters in block