Fix counting of slashes in RegexpLiteral.

Looking only at the string contents. This also means that delimiters don't have to be subtracted.
Copied the failing spec example from PR #627.