Correct handling of backslash in expandEvents()

Fixes #74