locale_gen: Support complex locale name

Such as 'ca_ES.UTF-8@valencia UTF-8'