Add escaping chars to ead id, fixes #6949
- Also fixed an undefined variable warning