Fix NameError when parsing {\n}

Fix a NameError that would occur when a string containing
{\n} was parsed.