[common] Decode inputs before feeding to difflib

1 job for py3_compatibility in 2 minutes and 6 seconds (queued for 5 seconds)