Removes Locale#forLanguageTag and #toLanguageTag usage to remain compatible with Java 6.