Encode the input to hashlib

Another python3-ism.

Change-Id: Ide54c16fd75b1e06b45a926b771d65575d50ca2e
1 file changed