Added charset detection from IBM ICU4J package