Tidy up handling of language metadata for subtitles.