Remove import of java.nio.charset.StandardCharsets

The build is failing in Jenkins because it can't find java.nio.charset.StandardCharsets for some reason. Use of the package can easily be factored out so I've done that.