encoding attachment names