What are the units involved here? You want velocity, which is m/s. The units of 0.0821 are L-atm/mol-K. The units of 8.314 are J/mol-K. A Joule is defined by the units of kg-m^2/s^2. Using the RMS velocity equation, which equation has the proper units? Use the 8.314 one:
RMS=((3*8.314 kg-m^2/s^2-mol-K*298 K)/mol weight in kg/mol)^1/2.
Your mistake was using the molecular weight in g/mol rather than kg/mol. If you use kg/mol, you are left with units of m^2/s^2 before taking the square root to reduce the units to the desired m/s. Rule of thumb, always keep track of the units as you work out a problem.