Use public.data instead of public.item for files
Minor compat fixes for NSString/UTI