Force attribute name to be string in Exception