added proper support for setting and getting multiple values per hash key in file metadata; also cope with non-ascii values