Add specs for Regexp#match and String#match
Use character offsets for String#match and Regexp#match

Fixes #1965