Fixed #969

Added Regexp.escape