Fixed check for filename length
for ResourceRef entries and "Add copy of" actions