Fix Regexp.escape to escape \t, \r, \n, \f characters