Correctly handle string escape sequences.