diff --git a/ryu/tests/unit/ofproto/test_parser_v10.py b/ryu/tests/unit/ofproto/test_parser_v10.py
index <HASH>..<HASH> 100644
--- a/ryu/tests/unit/ofproto/test_parser_v10.py
+++ b/ryu/tests/unit/ofproto/test_parser_v10.py
@@ -46,7 +46,7 @@ class TestOFPPhyPort(unittest.TestCase):
 
     buf = port_no['buf'] \
         + addrconv.mac.text_to_bin(hw_addr) \
-        + str.encode(name, 'ascii') \
+        + name \
         + config['buf'] \
         + state['buf'] \
         + curr['buf'] \
@@ -2304,7 +2304,7 @@ class TestOFPTableStats(unittest.TestCase):
 
     buf = table_id['buf'] \
         + zfill \
-        + str.encode(name, 'ascii') \
+        + name \
         + wildcards['buf'] \
         + max_entries['buf'] \
         + active_count['buf'] \
python3: Don't use str.encode

This commit partially reverts b<I>fedc<I>cb0c9c3fe<I>fc2d2f<I>b7fc<I>f8.
This kind of change complicates assertion checks below.