Specify encoding when opening files in sigv4 tests