Allows user to set the subject encoding if it differs from the platform.
source formatting and javadoc