Fix ord() when dealing with utf8 chars (#19423)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19423
ghimport-source-id: e7449489fbc86ec1116f94027b3c1561942413ee
Reviewed By: eellison
Differential Revision: D15002847
Pulled By: driazati
fbshipit-source-id: 4560cebcfca695447423d48d65ed364e7dbdbedb