tests: Use utf-8 when encoding our test data paths to bytes