diff --git a/bin/deepstate/reducer.py b/bin/deepstate/reducer.py index da82ed3..e465d4a 100644 --- a/bin/deepstate/reducer.py +++ b/bin/deepstate/reducer.py @@ -188,10 +188,10 @@ def main(): delims = [] for (tstart, tstop) in delimPairs: if tstart not in ["BEGIN", "END"]: - tstartBytes = bytearray(tstart) + tstartBytes = bytearray(tstart, encoding="utf8") start = tstartBytes[0] if tstop not in ["BEGIN", "END"]: - tstopBytes = bytearray(tstop) + tstopBytes = bytearray(tstop, encoding="utf8") stop = tstopBytes[0] for i in range(len(testBytes)): for j in range(len(testBytes) - 1, i, -1):