Replace toLanguageTag with toString (JDK5/6)