ScriptInfo: fix off-by-1 when parsing quoted text