Mangle: safer, faster mangling of object names

1. safer

names containing @s are obviously going to get clobbered on unmangling

2. faster

I noticed when profiling writing 100 objects of size ~100kb each in RDS format that 10% of the time was spent in gsub.

3. maybe a scan for non-ascii object names in mangle would be a good idea