Replace all invalid uses of countUntil() with std.string.indexOf(). Fixes #205.