Fixed the escaping of JS values to support multiline strings

Closes https://github.com/Behat/MinkSahiDriver/issues/1