Serializes files to hashes of strings for serialization over various protocols