Add extra check for bytes to read in compute_file_sha.
Add tests for adding empty thin packs to object stores.
Check for bytes rather than str.
Use bytes literals instead of string literals.