locale_gen: Fix locale with no '.'

Such as 'en_US ISO-8859-1':

  - locale_gen: name=en_US encoding=ISO-8859-1