work around  djdk8 charsets bug