patch BERT for UTF-8 handling