Chip Loder has this article on How to store extended file attributes in iCloud.
I hate that any of this is necessary, because iCloud should not be doing anything to your files. It is the whole problem with iTunes and it’s cloud services that can ruin your whole iTunes Library.
Apple needs to fix this, but I think they see it as a feature not a bug.