Canonicalize TM locales before storing them.

This makes TM matches available in cases where a TM file has languages in the form "en-us" while Zanata's internal representation has "en-US".