Use charset to properly adhere to Javadoc contract.