More IntelliJ updates. Should I be committing these or what?
Get charset from encoding for date format using Java utils.

Fixes #1128.