Fix to escape regexp.