Capitalize all language names in English
Clean-up subtitle encoding detection code