Revert "utf8 safe function for tokenization"

This reverts commit a9030583d624723303bef298377b40b834c235ae.