Fix escaping of backslashes, make quote escaping play nice with allowescapes