Fix a bug in set_contents_from_file where it wasn't setting md5 properly.