Fix TypeError 'a bytes-like object is required, not str'
Fix TypeError 'a bytes-like object is required, not str'

Bug: chromium:1259148
Change-Id: I7c87dec36bf256f213e0c70ce5fc95fb1090ed89
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/3218625
Reviewed-by: Wenbin Zhang <45ad8a1ff616a38a2202fd35571df81897c5f14f@google.com>
Commit-Queue: Yuan Huang <7a281d75098b3b2ef238c61b74c2fefca3ffd984@google.com>

catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult