Fix crash when passed a string ending with a lonely '\'
Fuzzing cairo-rs a crash in take_until_unbalanced
was found. It's caused by an odd number of '' characters at the end of input, as the index gets advanced beyond the end.
The fix consists in returning an error if it's the last character.