Added automatic charset detection provided by ICU library.