Make filtration of special characters unicode safe