Parse escape sequences