Correct formatting of locale id before submitting to l10n

Makes it work in Safari where the US locale can be 'en-us', which is not 'en-US'.