Parse escape sequences.