Preserve the permission when adding/modifying the copyright.
Fixed to work with spaces in file names.