added charset (compatibilitiy with jdk7)