resourceloader: Sanitize lang code before creating Language object

Bug: 62849
Change-Id: I6af7818c4d8d2201ac4e1a4050b92fea56d90306
Merge "resourceloader: Sanitize lang code before creating Language object"