s.encode('latin-1')でいいのかも
https://docs.python.org/3/library/codecs.html#encodings-and-unicode