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.
Merge pull request #105 from alphagov/encoding_fix

Remove import of java.nio.charset.StandardCharsets