Better way to clean up language codes