Fix for calculating the length of escaped quotes in strings.