were changed to offsets rather than potentially #f. Also consistently using string-cursor API rather than indexes. Fixes issue #189.