Accept languages as 'fr_FR.utf8' in lang_sel url

I have modified the urlconf to allow language codes with dots and underscores (as in fr_FR.utf8)