Console Extract task doesn't handle validation messages with qoutes correctly

Hi,

When a validation message is `a string with "double" quotes` currently the output is

```
msgid "a string with "double" quotes"
```

when it should be
```
msgid "a string with \"double\" quotes"
```

I've created a testcase for it and a fix.