I deleted 9x more code than this commit adds. Swapped the regex in for something that handles both escaping of nested quotes (up to a point?) and doesn't mess up things like a newline char. I added tests to validate this.