Fix case explode on cases with attachments

@dannyroberts 
Seems odd to slice off the first and last character here. Would it make sense to move the slice into `get_namespace`?

```py
return m.group(0)[1:-1] if m else ''
```