Fix issue with python3 conversion of build_verity_metadata.py

Files should be opened for reading/writing in text mode,
not binary mode.

Bug: 203436762
Test: Presubmits
Change-Id: I86166bf434704dbd0a546e543c684818b57620f5
1 file changed